package cn.com.cfae.iras.doc.analyze.parse.model;


import cn.com.cfae.iras.doc.analyze.parse.kv.TextLayout;

import java.util.ArrayList;
import java.util.List;

/**
 * 目录
 */
public class CatalogModel {


    private int catalogSeqNo;
    private String catalogName;
    private CatalogModel parent;
    private List<CatalogModel> childrens;

    public CatalogModel() {
        setChildrens(new ArrayList<>());
    }

    public int getCatalogSeqNo() {
        return catalogSeqNo;
    }

    public void setCatalogSeqNo(int catalogSeqNo) {
        this.catalogSeqNo = catalogSeqNo;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public CatalogModel getParent() {
        return parent;
    }

    public void setParent(CatalogModel parent) {
        this.parent = parent;
    }

    public List<CatalogModel> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<CatalogModel> childrens) {
        this.childrens = childrens;
    }

    public String getCatalogIndex() {
        return catalogIndex;
    }

    public void setCatalogIndex(String catalogIndex) {
        this.catalogIndex = catalogIndex;
    }


    /**
     * 页码
     */
    private String catalogIndex;


    public void addChild(CatalogModel child) {
        childrens.add(child);
    }


    public TextLayout getTextLayout() {
        return textLayout;
    }

    public void setTextLayout(TextLayout textLayout) {
        this.textLayout = textLayout;
    }

    private TextLayout textLayout;

}
